package com.google.tts;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.IBinder;
import android.os.RemoteException;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;
import android.speech.tts.TextToSpeech.OnUtteranceCompletedListener;
import android.util.Log;
import java.util.Locale;

public class TextToSpeechBeta extends TextToSpeech
{
  public static final String ACTION_TTS_QUEUE_PROCESSING_COMPLETED = "android.speech.tts.TTS_QUEUE_PROCESSING_COMPLETED";
  public static final int ERROR = -1;
  public static final int LANG_AVAILABLE = 0;
  public static final int LANG_COUNTRY_AVAILABLE = 1;
  public static final int LANG_COUNTRY_VAR_AVAILABLE = 2;
  public static final int LANG_MISSING_DATA = -1;
  public static final int LANG_NOT_SUPPORTED = -2;
  public static final String NOT_ON_PLATFORM_TTS = "TextToSpeechBeta not installed - basic platform TextToSpeech does not support ";
  public static final int QUEUE_ADD = 1;
  public static final int QUEUE_FLUSH = 0;
  public static final int SUCCESS = 0;
  public static final String USING_PLATFORM_TTS = "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for ";
  private static OnInitListener mInitListener = null;
  static TextToSpeech.OnInitListener platformOnInitListener;
  static boolean ttsBetaInstalled = false;
  private String[] mCachedParams;
  private Context mContext = null;
  private ITtsBeta mITts = null;
  private ITtsCallbackBeta mITtscallback = null;
  private String mPackageName = "";
  private ServiceConnection mServiceConnection;
  private final Object mStartLock = new Object();
  private boolean mStarted = false;

  static
  {
    platformOnInitListener = new TextToSpeech.OnInitListener()
    {
      public void onInit(int paramInt)
      {
        if ((TextToSpeechBeta.ttsBetaInstalled) || (TextToSpeechBeta.mInitListener == null))
          return;
        TextToSpeechBeta.mInitListener.onInit(paramInt, -1);
      }
    };
  }

  public TextToSpeechBeta(Context paramContext, OnInitListener paramOnInitListener)
  {
    super(paramContext, platformOnInitListener);
    ttsBetaInstalled = isInstalled(paramContext);
    mInitListener = paramOnInitListener;
    if (!(ttsBetaInstalled))
      return;
    super.shutdown();
    this.mContext = paramContext;
    this.mPackageName = this.mContext.getPackageName();
    this.mCachedParams = new String[12];
    this.mCachedParams[0] = "rate";
    this.mCachedParams[2] = "language";
    this.mCachedParams[4] = "country";
    this.mCachedParams[6] = "variant";
    this.mCachedParams[8] = "streamType";
    this.mCachedParams[10] = "utteranceId";
    this.mCachedParams[1] = String.valueOf(100);
    Locale localLocale = Locale.getDefault();
    this.mCachedParams[3] = localLocale.getISO3Language();
    this.mCachedParams[5] = localLocale.getISO3Country();
    this.mCachedParams[7] = localLocale.getVariant();
    this.mCachedParams[9] = String.valueOf(3);
    this.mCachedParams[11] = "";
    initTts();
  }

  private void initTts()
  {
    this.mStarted = false;
    this.mServiceConnection = new ServiceConnection()
    {
      public void onServiceConnected(ComponentName paramComponentName, IBinder paramIBinder)
      {
        synchronized (TextToSpeechBeta.this.mStartLock)
        {
          TextToSpeechBeta.this.mITts = ITtsBeta.Stub.asInterface(paramIBinder);
          TextToSpeechBeta.this.mStarted = true;
          TextToSpeechBeta.OnInitListener localOnInitListener = TextToSpeechBeta.mInitListener;
          label71: if (localOnInitListener == null);
        }
      }

      public void onServiceDisconnected(ComponentName paramComponentName)
      {
        synchronized (TextToSpeechBeta.this.mStartLock)
        {
          TextToSpeechBeta.this.mITts = null;
          TextToSpeechBeta.mInitListener = null;
          TextToSpeechBeta.this.mStarted = false;
          return;
        }
      }
    };
    Intent localIntent = new Intent("com.google.intent.action.START_TTS_SERVICE_BETA");
    localIntent.addCategory("com.google.intent.category.TTS_BETA");
    this.mContext.bindService(localIntent, this.mServiceConnection, 1);
  }

  public static boolean isInstalled(Context paramContext)
  {
    PackageManager localPackageManager = paramContext.getPackageManager();
    Intent localIntent = new Intent("com.google.intent.action.START_TTS_SERVICE_BETA");
    localIntent.addCategory("com.google.intent.category.TTS_BETA");
    if (localPackageManager.resolveService(localIntent, 0) == null);
    for (int i = 0; ; i = 1)
      return i;
  }

  private void resetCachedParams()
  {
    if (!(ttsBetaInstalled))
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - basic platform TextToSpeech does not support resetCachedParams");
    while (true)
    {
      return;
      this.mCachedParams[9] = String.valueOf(3);
      this.mCachedParams[11] = "";
    }
  }

  public int addEarcon(String paramString1, String paramString2)
  {
    int i;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for addEarcon");
      i = super.addEarcon(paramString1, paramString2);
    }
    while (true)
    {
      return i;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          i = -1;
      }
      try
      {
        this.mITts.addEarconFile(this.mPackageName, paramString1, paramString2);
        monitorexit;
        label95: i = 0;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - addEarcon", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        i = -1;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - addEarcon", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label95:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - addEarcon", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label95:
      }
    }
  }

  public int addEarcon(String paramString1, String paramString2, int paramInt)
  {
    int i;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for addEarcon");
      i = super.addEarcon(paramString1, paramString2, paramInt);
    }
    while (true)
    {
      return i;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          i = -1;
      }
      try
      {
        this.mITts.addEarcon(this.mPackageName, paramString1, paramString2, paramInt);
        monitorexit;
        label101: i = 0;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - addEarcon", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        i = -1;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - addEarcon", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label101:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - addEarcon", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label101:
      }
    }
  }

  public int addSpeech(String paramString1, String paramString2)
  {
    int i;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for addSpeech");
      i = super.addSpeech(paramString1, paramString2);
    }
    while (true)
    {
      return i;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          i = -1;
      }
      try
      {
        this.mITts.addSpeechFile(this.mPackageName, paramString1, paramString2);
        monitorexit;
        label95: i = 0;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - addSpeech", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        i = -1;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - addSpeech", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label95:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - addSpeech", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label95:
      }
    }
  }

  public int addSpeech(String paramString1, String paramString2, int paramInt)
  {
    int i;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for addSpeech");
      i = super.addSpeech(paramString1, paramString2, paramInt);
    }
    while (true)
    {
      return i;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          i = -1;
      }
      try
      {
        this.mITts.addSpeech(this.mPackageName, paramString1, paramString2, paramInt);
        monitorexit;
        label101: i = 0;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - addSpeech", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        i = -1;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - addSpeech", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label101:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - addSpeech", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label101:
      }
    }
  }

  public Locale getLanguage()
  {
    Object localObject3;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for getLanguage");
      localObject3 = super.getLanguage();
    }
    while (true)
    {
      return localObject3;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          localObject3 = null;
      }
      try
      {
        String[] arrayOfString = this.mITts.getLanguage();
        if ((arrayOfString != null) && (arrayOfString.length == 3))
        {
          Locale localLocale = new Locale(arrayOfString[0], arrayOfString[1], arrayOfString[2]);
          monitorexit;
          localObject3 = localLocale;
        }
        monitorexit;
        label132: localObject3 = null;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - getLanguage", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        localObject3 = null;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - getLanguage", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label132:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - getLanguage", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label132:
      }
    }
  }

  // ERROR //
  public int isLanguageAvailable(Locale paramLocale)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +22 -> 25
    //   6: ldc 196
    //   8: ldc_w 273
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: aload_1
    //   17: invokespecial 275	android/speech/tts/TextToSpeech:isLanguageAvailable	(Ljava/util/Locale;)I
    //   20: istore 7
    //   22: iload 7
    //   24: ireturn
    //   25: aload_0
    //   26: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   29: astore_2
    //   30: aload_2
    //   31: monitorenter
    //   32: bipush 254
    //   34: istore_3
    //   35: aload_0
    //   36: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   39: ifne +11 -> 50
    //   42: aload_2
    //   43: monitorexit
    //   44: iload_3
    //   45: istore 7
    //   47: goto -25 -> 22
    //   50: aload_0
    //   51: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   54: aload_1
    //   55: invokevirtual 140	java/util/Locale:getISO3Language	()Ljava/lang/String;
    //   58: aload_1
    //   59: invokevirtual 143	java/util/Locale:getISO3Country	()Ljava/lang/String;
    //   62: aload_1
    //   63: invokevirtual 146	java/util/Locale:getVariant	()Ljava/lang/String;
    //   66: invokeinterface 278 4 0
    //   71: istore 13
    //   73: iload 13
    //   75: istore_3
    //   76: aload_2
    //   77: monitorexit
    //   78: iload_3
    //   79: istore 7
    //   81: goto -59 -> 22
    //   84: astore 11
    //   86: ldc_w 280
    //   89: ldc 225
    //   91: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   94: pop
    //   95: aload 11
    //   97: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   100: aload_0
    //   101: iconst_0
    //   102: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   105: aload_0
    //   106: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   109: goto -33 -> 76
    //   112: astore 9
    //   114: ldc_w 280
    //   117: ldc 233
    //   119: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   122: pop
    //   123: aload 9
    //   125: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   128: aload_0
    //   129: iconst_0
    //   130: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   133: aload_0
    //   134: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   137: goto -61 -> 76
    //   140: astore 5
    //   142: ldc_w 280
    //   145: ldc 236
    //   147: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   150: pop
    //   151: aload 5
    //   153: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   156: aload_0
    //   157: iconst_0
    //   158: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   161: aload_0
    //   162: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   165: goto -89 -> 76
    //   168: astore 4
    //   170: aload_2
    //   171: monitorexit
    //   172: aload 4
    //   174: athrow
    //   175: astore 8
    //   177: goto -101 -> 76
    //
    // Exception table:
    //   from	to	target	type
    //   50	73	84	android/os/RemoteException
    //   50	73	112	java/lang/NullPointerException
    //   50	73	140	java/lang/IllegalStateException
    //   35	44	168	finally
    //   76	78	168	finally
    //   170	172	168	finally
    //   50	73	175	finally
    //   86	165	175	finally
  }

  public boolean isSpeaking()
  {
    boolean bool1;
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for isSpeaking");
      bool1 = super.isSpeaking();
    }
    while (true)
    {
      return bool1;
      synchronized (this.mStartLock)
      {
        if (!(this.mStarted))
          bool1 = false;
      }
      try
      {
        boolean bool2 = this.mITts.isSpeaking();
        monitorexit;
        label91: bool1 = bool2;
      }
      catch (RemoteException localRemoteException)
      {
        Log.e("TextToSpeech.java - isSpeaking", "RemoteException");
        localRemoteException.printStackTrace();
        this.mStarted = false;
        initTts();
        monitorexit;
        bool1 = false;
      }
      catch (NullPointerException localNullPointerException)
      {
        Log.e("TextToSpeech.java - isSpeaking", "NullPointerException");
        localNullPointerException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label91:
        localObject2 = finally;
        monitorexit;
        throw localObject2;
      }
      catch (IllegalStateException localIllegalStateException)
      {
        Log.e("TextToSpeech.java - isSpeaking", "IllegalStateException");
        localIllegalStateException.printStackTrace();
        this.mStarted = false;
        initTts();
        break label91:
      }
    }
  }

  // ERROR //
  public int playEarcon(String paramString, int paramInt, java.util.HashMap<String, String> paramHashMap)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +24 -> 27
    //   6: ldc 196
    //   8: ldc_w 293
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: aload_1
    //   17: iload_2
    //   18: aload_3
    //   19: invokespecial 295	android/speech/tts/TextToSpeech:playEarcon	(Ljava/lang/String;ILjava/util/HashMap;)I
    //   22: istore 9
    //   24: iload 9
    //   26: ireturn
    //   27: aload_0
    //   28: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   31: astore 4
    //   33: aload 4
    //   35: monitorenter
    //   36: bipush 255
    //   38: istore 5
    //   40: aload_0
    //   41: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   44: ifne +13 -> 57
    //   47: aload 4
    //   49: monitorexit
    //   50: iload 5
    //   52: istore 9
    //   54: goto -30 -> 24
    //   57: aload_3
    //   58: ifnull +60 -> 118
    //   61: aload_3
    //   62: invokevirtual 300	java/util/HashMap:isEmpty	()Z
    //   65: ifne +53 -> 118
    //   68: aload_3
    //   69: ldc 125
    //   71: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   74: checkcast 113	java/lang/String
    //   77: astore 16
    //   79: aload 16
    //   81: ifnull +12 -> 93
    //   84: aload_0
    //   85: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   88: bipush 9
    //   90: aload 16
    //   92: aastore
    //   93: aload_3
    //   94: ldc 127
    //   96: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   99: checkcast 113	java/lang/String
    //   102: astore 17
    //   104: aload 17
    //   106: ifnull +12 -> 118
    //   109: aload_0
    //   110: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   113: bipush 11
    //   115: aload 17
    //   117: aastore
    //   118: aload_0
    //   119: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   122: aload_0
    //   123: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   126: aload_1
    //   127: iload_2
    //   128: aconst_null
    //   129: invokeinterface 307 5 0
    //   134: istore 15
    //   136: iload 15
    //   138: istore 5
    //   140: aload_0
    //   141: invokespecial 309	com/google/tts/TextToSpeechBeta:resetCachedParams	()V
    //   144: aload 4
    //   146: monitorexit
    //   147: iload 5
    //   149: istore 9
    //   151: goto -127 -> 24
    //   154: astore 13
    //   156: ldc_w 311
    //   159: ldc 225
    //   161: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   164: pop
    //   165: aload 13
    //   167: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   170: aload_0
    //   171: iconst_0
    //   172: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   175: aload_0
    //   176: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   179: goto -39 -> 140
    //   182: astore 11
    //   184: ldc_w 311
    //   187: ldc 233
    //   189: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   192: pop
    //   193: aload 11
    //   195: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   198: aload_0
    //   199: iconst_0
    //   200: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   203: aload_0
    //   204: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   207: goto -67 -> 140
    //   210: astore 7
    //   212: ldc_w 311
    //   215: ldc 236
    //   217: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   220: pop
    //   221: aload 7
    //   223: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   226: aload_0
    //   227: iconst_0
    //   228: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   231: aload_0
    //   232: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   235: goto -95 -> 140
    //   238: astore 6
    //   240: aload 4
    //   242: monitorexit
    //   243: aload 6
    //   245: athrow
    //   246: astore 10
    //   248: goto -108 -> 140
    //
    // Exception table:
    //   from	to	target	type
    //   61	136	154	android/os/RemoteException
    //   61	136	182	java/lang/NullPointerException
    //   61	136	210	java/lang/IllegalStateException
    //   40	50	238	finally
    //   140	147	238	finally
    //   240	243	238	finally
    //   61	136	246	finally
    //   156	235	246	finally
  }

  // ERROR //
  public int playSilence(long paramLong, int paramInt, java.util.HashMap<String, String> paramHashMap)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +25 -> 28
    //   6: ldc 196
    //   8: ldc_w 315
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: lload_1
    //   17: iload_3
    //   18: aload 4
    //   20: invokespecial 317	android/speech/tts/TextToSpeech:playSilence	(JILjava/util/HashMap;)I
    //   23: istore 10
    //   25: iload 10
    //   27: ireturn
    //   28: aload_0
    //   29: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   32: astore 5
    //   34: aload 5
    //   36: monitorenter
    //   37: bipush 255
    //   39: istore 6
    //   41: aload_0
    //   42: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   45: ifne +13 -> 58
    //   48: aload 5
    //   50: monitorexit
    //   51: iload 6
    //   53: istore 10
    //   55: goto -30 -> 25
    //   58: aload 4
    //   60: ifnull +37 -> 97
    //   63: aload 4
    //   65: invokevirtual 300	java/util/HashMap:isEmpty	()Z
    //   68: ifne +29 -> 97
    //   71: aload 4
    //   73: ldc 127
    //   75: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   78: checkcast 113	java/lang/String
    //   81: astore 17
    //   83: aload 17
    //   85: ifnull +12 -> 97
    //   88: aload_0
    //   89: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   92: bipush 11
    //   94: aload 17
    //   96: aastore
    //   97: aload_0
    //   98: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   101: aload_0
    //   102: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   105: lload_1
    //   106: iload_3
    //   107: aload_0
    //   108: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   111: invokeinterface 320 6 0
    //   116: istore 16
    //   118: iload 16
    //   120: istore 6
    //   122: aload 5
    //   124: monitorexit
    //   125: iload 6
    //   127: istore 10
    //   129: goto -104 -> 25
    //   132: astore 14
    //   134: ldc_w 322
    //   137: ldc 225
    //   139: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   142: pop
    //   143: aload 14
    //   145: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   148: aload_0
    //   149: iconst_0
    //   150: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   153: aload_0
    //   154: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   157: goto -35 -> 122
    //   160: astore 12
    //   162: ldc_w 322
    //   165: ldc 233
    //   167: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   170: pop
    //   171: aload 12
    //   173: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   176: aload_0
    //   177: iconst_0
    //   178: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   181: aload_0
    //   182: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   185: goto -63 -> 122
    //   188: astore 8
    //   190: ldc_w 322
    //   193: ldc 236
    //   195: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   198: pop
    //   199: aload 8
    //   201: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   204: aload_0
    //   205: iconst_0
    //   206: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   209: aload_0
    //   210: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   213: goto -91 -> 122
    //   216: astore 7
    //   218: aload 5
    //   220: monitorexit
    //   221: aload 7
    //   223: athrow
    //   224: astore 11
    //   226: goto -104 -> 122
    //
    // Exception table:
    //   from	to	target	type
    //   63	118	132	android/os/RemoteException
    //   63	118	160	java/lang/NullPointerException
    //   63	118	188	java/lang/IllegalStateException
    //   41	51	216	finally
    //   122	125	216	finally
    //   218	221	216	finally
    //   63	118	224	finally
    //   134	213	224	finally
  }

  // ERROR //
  public int setLanguage(Locale paramLocale)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +22 -> 25
    //   6: ldc 196
    //   8: ldc_w 325
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: aload_1
    //   17: invokespecial 327	android/speech/tts/TextToSpeech:setLanguage	(Ljava/util/Locale;)I
    //   20: istore 7
    //   22: iload 7
    //   24: ireturn
    //   25: aload_0
    //   26: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   29: astore_2
    //   30: aload_2
    //   31: monitorenter
    //   32: bipush 254
    //   34: istore_3
    //   35: aload_0
    //   36: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   39: ifne +11 -> 50
    //   42: aload_2
    //   43: monitorexit
    //   44: iload_3
    //   45: istore 7
    //   47: goto -25 -> 22
    //   50: aload_0
    //   51: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   54: iconst_3
    //   55: aload_1
    //   56: invokevirtual 140	java/util/Locale:getISO3Language	()Ljava/lang/String;
    //   59: aastore
    //   60: aload_0
    //   61: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   64: iconst_5
    //   65: aload_1
    //   66: invokevirtual 143	java/util/Locale:getISO3Country	()Ljava/lang/String;
    //   69: aastore
    //   70: aload_0
    //   71: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   74: bipush 7
    //   76: aload_1
    //   77: invokevirtual 146	java/util/Locale:getVariant	()Ljava/lang/String;
    //   80: aastore
    //   81: aload_0
    //   82: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   85: aload_0
    //   86: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   89: iconst_3
    //   90: aaload
    //   91: aload_0
    //   92: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   95: iconst_5
    //   96: aaload
    //   97: aload_0
    //   98: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   101: bipush 7
    //   103: aaload
    //   104: invokeinterface 278 4 0
    //   109: istore 13
    //   111: iload 13
    //   113: istore_3
    //   114: aload_2
    //   115: monitorexit
    //   116: iload_3
    //   117: istore 7
    //   119: goto -97 -> 22
    //   122: astore 11
    //   124: ldc_w 329
    //   127: ldc 225
    //   129: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   132: pop
    //   133: aload 11
    //   135: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   138: aload_0
    //   139: iconst_0
    //   140: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   143: aload_0
    //   144: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   147: goto -33 -> 114
    //   150: astore 9
    //   152: ldc_w 329
    //   155: ldc 233
    //   157: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   160: pop
    //   161: aload 9
    //   163: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   166: aload_0
    //   167: iconst_0
    //   168: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   171: aload_0
    //   172: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   175: goto -61 -> 114
    //   178: astore 5
    //   180: ldc_w 329
    //   183: ldc 236
    //   185: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   188: pop
    //   189: aload 5
    //   191: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   194: aload_0
    //   195: iconst_0
    //   196: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   199: aload_0
    //   200: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   203: goto -89 -> 114
    //   206: astore 4
    //   208: aload_2
    //   209: monitorexit
    //   210: aload 4
    //   212: athrow
    //   213: astore 8
    //   215: goto -101 -> 114
    //
    // Exception table:
    //   from	to	target	type
    //   50	111	122	android/os/RemoteException
    //   50	111	150	java/lang/NullPointerException
    //   50	111	178	java/lang/IllegalStateException
    //   35	44	206	finally
    //   114	116	206	finally
    //   208	210	206	finally
    //   50	111	213	finally
    //   124	203	213	finally
  }

  // ERROR //
  public int setOnUtteranceCompletedListener(OnUtteranceCompletedListener paramOnUtteranceCompletedListener)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +30 -> 33
    //   6: ldc 196
    //   8: ldc_w 333
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: new 10	com/google/tts/TextToSpeechBeta$3
    //   19: dup
    //   20: aload_0
    //   21: aload_1
    //   22: invokespecial 336	com/google/tts/TextToSpeechBeta$3:<init>	(Lcom/google/tts/TextToSpeechBeta;Lcom/google/tts/TextToSpeechBeta$OnUtteranceCompletedListener;)V
    //   25: invokespecial 339	android/speech/tts/TextToSpeech:setOnUtteranceCompletedListener	(Landroid/speech/tts/TextToSpeech$OnUtteranceCompletedListener;)I
    //   28: istore 7
    //   30: iload 7
    //   32: ireturn
    //   33: aload_0
    //   34: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   37: astore_2
    //   38: aload_2
    //   39: monitorenter
    //   40: bipush 255
    //   42: istore_3
    //   43: aload_0
    //   44: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   47: ifne +11 -> 58
    //   50: aload_2
    //   51: monitorexit
    //   52: iload_3
    //   53: istore 7
    //   55: goto -25 -> 30
    //   58: aload_0
    //   59: new 12	com/google/tts/TextToSpeechBeta$4
    //   62: dup
    //   63: aload_0
    //   64: aload_1
    //   65: invokespecial 340	com/google/tts/TextToSpeechBeta$4:<init>	(Lcom/google/tts/TextToSpeechBeta;Lcom/google/tts/TextToSpeechBeta$OnUtteranceCompletedListener;)V
    //   68: putfield 85	com/google/tts/TextToSpeechBeta:mITtscallback	Lcom/google/tts/ITtsCallbackBeta;
    //   71: aload_0
    //   72: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   75: aload_0
    //   76: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   79: aload_0
    //   80: getfield 85	com/google/tts/TextToSpeechBeta:mITtscallback	Lcom/google/tts/ITtsCallbackBeta;
    //   83: invokeinterface 344 3 0
    //   88: istore 13
    //   90: iload 13
    //   92: istore_3
    //   93: aload_2
    //   94: monitorexit
    //   95: iload_3
    //   96: istore 7
    //   98: goto -68 -> 30
    //   101: astore 11
    //   103: ldc_w 346
    //   106: ldc 225
    //   108: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   111: pop
    //   112: aload 11
    //   114: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   117: aload_0
    //   118: iconst_0
    //   119: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   122: aload_0
    //   123: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   126: goto -33 -> 93
    //   129: astore 9
    //   131: ldc_w 346
    //   134: ldc 233
    //   136: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   139: pop
    //   140: aload 9
    //   142: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   145: aload_0
    //   146: iconst_0
    //   147: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   150: aload_0
    //   151: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   154: goto -61 -> 93
    //   157: astore 5
    //   159: ldc_w 346
    //   162: ldc 236
    //   164: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   167: pop
    //   168: aload 5
    //   170: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   173: aload_0
    //   174: iconst_0
    //   175: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   178: aload_0
    //   179: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   182: goto -89 -> 93
    //   185: astore 4
    //   187: aload_2
    //   188: monitorexit
    //   189: aload 4
    //   191: athrow
    //   192: astore 8
    //   194: goto -101 -> 93
    //
    // Exception table:
    //   from	to	target	type
    //   71	90	101	android/os/RemoteException
    //   71	90	129	java/lang/NullPointerException
    //   71	90	157	java/lang/IllegalStateException
    //   43	71	185	finally
    //   93	95	185	finally
    //   187	189	185	finally
    //   71	90	192	finally
    //   103	182	192	finally
  }

  // ERROR //
  public int setPitch(float paramFloat)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +22 -> 25
    //   6: ldc 196
    //   8: ldc_w 350
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: fload_1
    //   17: invokespecial 352	android/speech/tts/TextToSpeech:setPitch	(F)I
    //   20: istore 5
    //   22: iload 5
    //   24: ireturn
    //   25: aload_0
    //   26: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   29: astore_2
    //   30: aload_2
    //   31: monitorenter
    //   32: bipush 255
    //   34: istore_3
    //   35: aload_0
    //   36: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   39: ifne +11 -> 50
    //   42: aload_2
    //   43: monitorexit
    //   44: iload_3
    //   45: istore 5
    //   47: goto -25 -> 22
    //   50: fload_1
    //   51: fconst_0
    //   52: fcmpl
    //   53: ifle +27 -> 80
    //   56: aload_0
    //   57: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   60: aload_0
    //   61: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   64: ldc_w 353
    //   67: fload_1
    //   68: fmul
    //   69: f2i
    //   70: invokeinterface 356 3 0
    //   75: istore 13
    //   77: iload 13
    //   79: istore_3
    //   80: aload_2
    //   81: monitorexit
    //   82: iload_3
    //   83: istore 5
    //   85: goto -63 -> 22
    //   88: astore 11
    //   90: ldc_w 358
    //   93: ldc 225
    //   95: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   98: pop
    //   99: aload 11
    //   101: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   104: aload_0
    //   105: iconst_0
    //   106: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   109: aload_0
    //   110: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   113: goto -33 -> 80
    //   116: astore 9
    //   118: ldc_w 358
    //   121: ldc 233
    //   123: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   126: pop
    //   127: aload 9
    //   129: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   132: aload_0
    //   133: iconst_0
    //   134: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   137: aload_0
    //   138: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   141: goto -61 -> 80
    //   144: astore 6
    //   146: ldc_w 358
    //   149: ldc 236
    //   151: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   154: pop
    //   155: aload 6
    //   157: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   160: aload_0
    //   161: iconst_0
    //   162: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   165: aload_0
    //   166: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   169: goto -89 -> 80
    //   172: astore 4
    //   174: aload_2
    //   175: monitorexit
    //   176: aload 4
    //   178: athrow
    //   179: astore 8
    //   181: goto -101 -> 80
    //
    // Exception table:
    //   from	to	target	type
    //   56	77	88	android/os/RemoteException
    //   56	77	116	java/lang/NullPointerException
    //   56	77	144	java/lang/IllegalStateException
    //   35	44	172	finally
    //   80	82	172	finally
    //   174	176	172	finally
    //   56	77	179	finally
    //   90	169	179	finally
  }

  // ERROR //
  public int setSpeechRate(float paramFloat)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +22 -> 25
    //   6: ldc 196
    //   8: ldc_w 350
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: fload_1
    //   17: invokespecial 361	android/speech/tts/TextToSpeech:setSpeechRate	(F)I
    //   20: istore 5
    //   22: iload 5
    //   24: ireturn
    //   25: aload_0
    //   26: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   29: astore_2
    //   30: aload_2
    //   31: monitorenter
    //   32: bipush 255
    //   34: istore_3
    //   35: aload_0
    //   36: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   39: ifne +11 -> 50
    //   42: aload_2
    //   43: monitorexit
    //   44: iload_3
    //   45: istore 5
    //   47: goto -25 -> 22
    //   50: fload_1
    //   51: fconst_0
    //   52: fcmpl
    //   53: ifle +30 -> 83
    //   56: ldc_w 353
    //   59: fload_1
    //   60: fmul
    //   61: f2i
    //   62: istore 6
    //   64: aload_0
    //   65: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   68: iconst_1
    //   69: iload 6
    //   71: invokestatic 131	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   74: aastore
    //   75: fload_1
    //   76: fconst_0
    //   77: fcmpl
    //   78: ifle +13 -> 91
    //   81: iconst_0
    //   82: istore_3
    //   83: aload_2
    //   84: monitorexit
    //   85: iload_3
    //   86: istore 5
    //   88: goto -66 -> 22
    //   91: bipush 255
    //   93: istore_3
    //   94: goto -11 -> 83
    //   97: astore 10
    //   99: ldc_w 363
    //   102: ldc 233
    //   104: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   107: pop
    //   108: aload 10
    //   110: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   113: aload_0
    //   114: iconst_0
    //   115: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   118: aload_0
    //   119: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   122: goto -39 -> 83
    //   125: astore 7
    //   127: ldc_w 363
    //   130: ldc 236
    //   132: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   135: pop
    //   136: aload 7
    //   138: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   141: aload_0
    //   142: iconst_0
    //   143: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   146: aload_0
    //   147: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   150: goto -67 -> 83
    //   153: astore 4
    //   155: aload_2
    //   156: monitorexit
    //   157: aload 4
    //   159: athrow
    //   160: astore 9
    //   162: goto -79 -> 83
    //
    // Exception table:
    //   from	to	target	type
    //   64	75	97	java/lang/NullPointerException
    //   64	75	125	java/lang/IllegalStateException
    //   35	44	153	finally
    //   83	85	153	finally
    //   155	157	153	finally
    //   64	75	160	finally
    //   99	150	160	finally
  }

  public void shutdown()
  {
    if (!(ttsBetaInstalled))
    {
      Log.d("TextToSpeechBeta", "TextToSpeechBeta not installed - defaulting to basic platform TextToSpeech for shutdown");
      super.shutdown();
    }
    while (true)
    {
      return;
      try
      {
        this.mContext.unbindService(this.mServiceConnection);
      }
      catch (IllegalArgumentException localIllegalArgumentException)
      {
      }
    }
  }

  // ERROR //
  public int speak(String paramString, int paramInt, java.util.HashMap<String, String> paramHashMap)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +24 -> 27
    //   6: ldc 196
    //   8: ldc_w 374
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: aload_1
    //   17: iload_2
    //   18: aload_3
    //   19: invokespecial 376	android/speech/tts/TextToSpeech:speak	(Ljava/lang/String;ILjava/util/HashMap;)I
    //   22: istore 10
    //   24: iload 10
    //   26: ireturn
    //   27: aload_0
    //   28: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   31: astore 4
    //   33: aload 4
    //   35: monitorenter
    //   36: bipush 255
    //   38: istore 5
    //   40: ldc_w 378
    //   43: aload_1
    //   44: invokestatic 381	android/util/Log:i	(Ljava/lang/String;Ljava/lang/String;)I
    //   47: pop
    //   48: aload_0
    //   49: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   52: ifne +13 -> 65
    //   55: aload 4
    //   57: monitorexit
    //   58: iload 5
    //   60: istore 10
    //   62: goto -38 -> 24
    //   65: aload_3
    //   66: ifnull +60 -> 126
    //   69: aload_3
    //   70: invokevirtual 300	java/util/HashMap:isEmpty	()Z
    //   73: ifne +53 -> 126
    //   76: aload_3
    //   77: ldc 125
    //   79: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   82: checkcast 113	java/lang/String
    //   85: astore 17
    //   87: aload 17
    //   89: ifnull +12 -> 101
    //   92: aload_0
    //   93: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   96: bipush 9
    //   98: aload 17
    //   100: aastore
    //   101: aload_3
    //   102: ldc 127
    //   104: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   107: checkcast 113	java/lang/String
    //   110: astore 18
    //   112: aload 18
    //   114: ifnull +12 -> 126
    //   117: aload_0
    //   118: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   121: bipush 11
    //   123: aload 18
    //   125: aastore
    //   126: aload_0
    //   127: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   130: aload_0
    //   131: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   134: aload_1
    //   135: iload_2
    //   136: aload_0
    //   137: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   140: invokeinterface 383 5 0
    //   145: istore 16
    //   147: iload 16
    //   149: istore 5
    //   151: aload_0
    //   152: invokespecial 309	com/google/tts/TextToSpeechBeta:resetCachedParams	()V
    //   155: aload 4
    //   157: monitorexit
    //   158: iload 5
    //   160: istore 10
    //   162: goto -138 -> 24
    //   165: astore 14
    //   167: ldc_w 385
    //   170: ldc 225
    //   172: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   175: pop
    //   176: aload 14
    //   178: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   181: aload_0
    //   182: iconst_0
    //   183: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   186: aload_0
    //   187: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   190: goto -39 -> 151
    //   193: astore 12
    //   195: ldc_w 385
    //   198: ldc 233
    //   200: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   203: pop
    //   204: aload 12
    //   206: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   209: aload_0
    //   210: iconst_0
    //   211: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   214: aload_0
    //   215: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   218: goto -67 -> 151
    //   221: astore 8
    //   223: ldc_w 385
    //   226: ldc 236
    //   228: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   231: pop
    //   232: aload 8
    //   234: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   237: aload_0
    //   238: iconst_0
    //   239: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   242: aload_0
    //   243: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   246: goto -95 -> 151
    //   249: astore 6
    //   251: aload 4
    //   253: monitorexit
    //   254: aload 6
    //   256: athrow
    //   257: astore 11
    //   259: goto -108 -> 151
    //
    // Exception table:
    //   from	to	target	type
    //   69	147	165	android/os/RemoteException
    //   69	147	193	java/lang/NullPointerException
    //   69	147	221	java/lang/IllegalStateException
    //   40	58	249	finally
    //   151	158	249	finally
    //   251	254	249	finally
    //   69	147	257	finally
    //   167	246	257	finally
  }

  // ERROR //
  public int stop()
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +21 -> 24
    //   6: ldc 196
    //   8: ldc_w 389
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: invokespecial 391	android/speech/tts/TextToSpeech:stop	()I
    //   19: istore 6
    //   21: iload 6
    //   23: ireturn
    //   24: aload_0
    //   25: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   28: astore_1
    //   29: aload_1
    //   30: monitorenter
    //   31: bipush 255
    //   33: istore_2
    //   34: aload_0
    //   35: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   38: ifne +11 -> 49
    //   41: aload_1
    //   42: monitorexit
    //   43: iload_2
    //   44: istore 6
    //   46: goto -25 -> 21
    //   49: aload_0
    //   50: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   53: aload_0
    //   54: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   57: invokeinterface 394 2 0
    //   62: istore 12
    //   64: iload 12
    //   66: istore_2
    //   67: aload_1
    //   68: monitorexit
    //   69: iload_2
    //   70: istore 6
    //   72: goto -51 -> 21
    //   75: astore 10
    //   77: ldc_w 396
    //   80: ldc 225
    //   82: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   85: pop
    //   86: aload 10
    //   88: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   91: aload_0
    //   92: iconst_0
    //   93: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   96: aload_0
    //   97: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   100: goto -33 -> 67
    //   103: astore 8
    //   105: ldc_w 396
    //   108: ldc 233
    //   110: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   113: pop
    //   114: aload 8
    //   116: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   119: aload_0
    //   120: iconst_0
    //   121: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   124: aload_0
    //   125: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   128: goto -61 -> 67
    //   131: astore 4
    //   133: ldc_w 396
    //   136: ldc 236
    //   138: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   141: pop
    //   142: aload 4
    //   144: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   147: aload_0
    //   148: iconst_0
    //   149: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   152: aload_0
    //   153: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   156: goto -89 -> 67
    //   159: astore_3
    //   160: aload_1
    //   161: monitorexit
    //   162: aload_3
    //   163: athrow
    //   164: astore 7
    //   166: goto -99 -> 67
    //
    // Exception table:
    //   from	to	target	type
    //   49	64	75	android/os/RemoteException
    //   49	64	103	java/lang/NullPointerException
    //   49	64	131	java/lang/IllegalStateException
    //   34	43	159	finally
    //   67	69	159	finally
    //   160	162	159	finally
    //   49	64	164	finally
    //   77	156	164	finally
  }

  // ERROR //
  public int synthesizeToFile(String paramString1, java.util.HashMap<String, String> paramHashMap, String paramString2)
  {
    // Byte code:
    //   0: getstatic 72	com/google/tts/TextToSpeechBeta:ttsBetaInstalled	Z
    //   3: ifne +24 -> 27
    //   6: ldc 196
    //   8: ldc_w 400
    //   11: invokestatic 204	android/util/Log:d	(Ljava/lang/String;Ljava/lang/String;)I
    //   14: pop
    //   15: aload_0
    //   16: aload_1
    //   17: aload_2
    //   18: aload_3
    //   19: invokespecial 402	android/speech/tts/TextToSpeech:synthesizeToFile	(Ljava/lang/String;Ljava/util/HashMap;Ljava/lang/String;)I
    //   22: istore 9
    //   24: iload 9
    //   26: ireturn
    //   27: aload_0
    //   28: getfield 98	com/google/tts/TextToSpeechBeta:mStartLock	Ljava/lang/Object;
    //   31: astore 4
    //   33: aload 4
    //   35: monitorenter
    //   36: bipush 255
    //   38: istore 5
    //   40: aload_0
    //   41: getfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   44: ifne +13 -> 57
    //   47: aload 4
    //   49: monitorexit
    //   50: iload 5
    //   52: istore 9
    //   54: goto -30 -> 24
    //   57: aload_2
    //   58: ifnull +35 -> 93
    //   61: aload_2
    //   62: invokevirtual 300	java/util/HashMap:isEmpty	()Z
    //   65: ifne +28 -> 93
    //   68: aload_2
    //   69: ldc 127
    //   71: invokevirtual 304	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   74: checkcast 113	java/lang/String
    //   77: astore 16
    //   79: aload 16
    //   81: ifnull +12 -> 93
    //   84: aload_0
    //   85: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   88: bipush 11
    //   90: aload 16
    //   92: aastore
    //   93: aload_0
    //   94: getfield 83	com/google/tts/TextToSpeechBeta:mITts	Lcom/google/tts/ITtsBeta;
    //   97: aload_0
    //   98: getfield 91	com/google/tts/TextToSpeechBeta:mPackageName	Ljava/lang/String;
    //   101: aload_1
    //   102: aload_0
    //   103: getfield 115	com/google/tts/TextToSpeechBeta:mCachedParams	[Ljava/lang/String;
    //   106: aload_3
    //   107: invokeinterface 405 5 0
    //   112: istore 15
    //   114: iload 15
    //   116: ifeq +6 -> 122
    //   119: iconst_0
    //   120: istore 5
    //   122: aload_0
    //   123: invokespecial 309	com/google/tts/TextToSpeechBeta:resetCachedParams	()V
    //   126: aload 4
    //   128: monitorexit
    //   129: iload 5
    //   131: istore 9
    //   133: goto -109 -> 24
    //   136: astore 13
    //   138: ldc_w 407
    //   141: ldc 225
    //   143: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   146: pop
    //   147: aload 13
    //   149: invokevirtual 231	android/os/RemoteException:printStackTrace	()V
    //   152: aload_0
    //   153: iconst_0
    //   154: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   157: aload_0
    //   158: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   161: goto -39 -> 122
    //   164: astore 11
    //   166: ldc_w 407
    //   169: ldc 233
    //   171: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   174: pop
    //   175: aload 11
    //   177: invokevirtual 234	java/lang/NullPointerException:printStackTrace	()V
    //   180: aload_0
    //   181: iconst_0
    //   182: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   185: aload_0
    //   186: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   189: goto -67 -> 122
    //   192: astore 7
    //   194: ldc_w 407
    //   197: ldc 236
    //   199: invokestatic 228	android/util/Log:e	(Ljava/lang/String;Ljava/lang/String;)I
    //   202: pop
    //   203: aload 7
    //   205: invokevirtual 237	java/lang/IllegalStateException:printStackTrace	()V
    //   208: aload_0
    //   209: iconst_0
    //   210: putfield 93	com/google/tts/TextToSpeechBeta:mStarted	Z
    //   213: aload_0
    //   214: invokespecial 149	com/google/tts/TextToSpeechBeta:initTts	()V
    //   217: goto -95 -> 122
    //   220: astore 6
    //   222: aload 4
    //   224: monitorexit
    //   225: aload 6
    //   227: athrow
    //   228: astore 10
    //   230: goto -108 -> 122
    //
    // Exception table:
    //   from	to	target	type
    //   61	114	136	android/os/RemoteException
    //   61	114	164	java/lang/NullPointerException
    //   61	114	192	java/lang/IllegalStateException
    //   40	50	220	finally
    //   122	129	220	finally
    //   222	225	220	finally
    //   61	114	228	finally
    //   138	217	228	finally
  }

  public class Engine
  {
    public static final String ACTION_CHECK_TTS_DATA = "android.speech.tts.engine.CHECK_TTS_DATA";
    public static final String ACTION_INSTALL_TTS_DATA = "android.speech.tts.engine.INSTALL_TTS_DATA";
    public static final String ACTION_TTS_DATA_INSTALLED = "android.speech.tts.engine.TTS_DATA_INSTALLED";
    public static final int CHECK_VOICE_DATA_BAD_DATA = -1;
    public static final int CHECK_VOICE_DATA_FAIL = 0;
    public static final int CHECK_VOICE_DATA_MISSING_DATA = -2;
    public static final int CHECK_VOICE_DATA_MISSING_VOLUME = -3;
    public static final int CHECK_VOICE_DATA_PASS = 1;
    public static final int DEFAULT_PITCH = 100;
    public static final int DEFAULT_RATE = 100;
    public static final int DEFAULT_STREAM = 3;
    public static final String DEFAULT_SYNTH = "com.svox.pico";
    public static final String EXTRA_TTS_DATA_INSTALLED = "dataInstalled";
    public static final String EXTRA_VOICE_DATA_FILES = "dataFiles";
    public static final String EXTRA_VOICE_DATA_FILES_INFO = "dataFilesInfo";
    public static final String EXTRA_VOICE_DATA_ROOT_DIRECTORY = "dataRoot";
    public static final String KEY_PARAM_COUNTRY = "country";
    public static final String KEY_PARAM_LANGUAGE = "language";
    public static final String KEY_PARAM_RATE = "rate";
    public static final String KEY_PARAM_STREAM = "streamType";
    public static final String KEY_PARAM_UTTERANCE_ID = "utteranceId";
    public static final String KEY_PARAM_VARIANT = "variant";
    protected static final int NB_CACHED_PARAMS = 6;
    protected static final int PARAM_POSITION_COUNTRY = 4;
    protected static final int PARAM_POSITION_LANGUAGE = 2;
    protected static final int PARAM_POSITION_RATE = 0;
    protected static final int PARAM_POSITION_STREAM = 8;
    protected static final int PARAM_POSITION_UTTERANCE_ID = 10;
    protected static final int PARAM_POSITION_VARIANT = 6;
    public static final int USE_DEFAULTS;
  }

  public static abstract interface OnInitListener
  {
    public abstract void onInit(int paramInt1, int paramInt2);
  }

  public static abstract interface OnUtteranceCompletedListener
  {
    public abstract void onUtteranceCompleted(String paramString);
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     com.google.tts.TextToSpeechBeta
 * JD-Core Version:    0.5.3
 */